# d={}
#
# print(d,type(d))
#
# d=dict(x=1,y=2,z=3)
# print(d,type(d))

#3数据类型转换
# info= [ ['name','egon'],('age',18),['gender','male']]
# d={}
# for item in info:
#     d[item[0]]=item[1]
# for k,v in info:
#     d[k]=v
# print(d)

# res = dict(info)
# print(res)

keys=['name','age','gender']
value =None

# d={}
# for k in keys:
#     d[k]=value
# print(d)
d = {}.fromkeys(keys,value)
print(d)